# -*- coding: utf-8 -*-
"""
@deprecated 此文件已迁移到新架构，仅保留入口兼容性
请使用 mqtt/consumer/worker/alarm_worker.py

告警-工单-映射 三件套，事务内悲观锁，保证唯一且一致
"""
from __future__ import annotations

import warnings

# 导入新架构的实现
from mqtt.consumer.worker.alarm_worker import AlarmWorker as NewAlarmWorker

warnings.warn(
    "AlarmWorker from mqtt.consumer.alarm_worker is deprecated. "
    "Use mqtt.consumer.worker.alarm_worker.AlarmWorker instead.",
    DeprecationWarning,
    stacklevel=2
)

# 兼容性别名
AlarmWorker = NewAlarmWorker
